package com.dexilaonian.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.dexilaonian.R;
import com.dexilaonian.ui.BaseActivity;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class BindSuccessActivity extends BaseActivity {

    @Bind(R.id.back)
    ImageView back;
    @Bind(R.id.base_title_service3)
    TextView baseTitleService3;
    @Bind(R.id.btn_bind_success)
    Button btnBindSuccess;

    @Override
    public int getLayoutID() {
        return R.layout.activity_bind_success;
    }

    @Override
    public void initView() {

    }

    @Override
    protected void initData() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
        baseTitleService3.setText("绑定成功");
    }

    @OnClick({R.id.back, R.id.btn_bind_success})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.back:
                finish();
                break;
            case R.id.btn_bind_success:
                startActivity(new Intent(BindSuccessActivity.this, SuccessPersonActivity.class));
                baseTitleService3.setText("绑定设备");
                break;
        }
    }
}
